import java.util.Scanner;

public class InitCar {
    public static void main(String[] args) {


        Car car= new Car();
        car.brand = "飞腾汽车";
        car.price = 66;
        car.weight = 1.5;
        car.showCar();
        Scanner input = new Scanner(System.in);
        System.out.println("请加油（升）：");
        double a =input.nextDouble();
        System.out.println("请输入数字：1.行驶 2.鸣笛 3.刹车");
        int num=input.nextInt();
        switch(num){
            case 1:
                car.run(a);
                break;
            case 2:
                car.whistle();
                break;
            case 3:
                car.brake();
                break;
            case  4 :
                car.speeUp();
        }

    }
}